This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Insert Subform into Form programatically ~Wendy Fezfanamarnivu 30.Dec.03 09:13 PM a Web browser Domino Designer All ReleasesAll Platforms
use lotus script to close the document and then open it again. here is an example, since i have tabs i have to set which tab to open to and then what filed to focus on. happens so fast you can not tell it has been done.
Sub AddLines10
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim doc2 As Notesdocument
Dim DocUID As String
Set db = session.CurrentDatabase
Dim uidoc As NotesUIDocument
Dim uidoc2 As NotesUIDocument
Dim view As NotesView
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document
doc.reportsdesign = "Yes"
docUID = doc.DocID(0)
Call uidoc.Save
Set doc2 = db.GetDocumentByUNID (docUID)
Set uidoc2 = workspace.editdocument(False, doc2, False)
Call uidoc2.FieldSetText("tab", "2")
Call uidoc2.RefreshHideFormulas
Call uidoc2.Refresh
Call uidoc2.GotoField( "designlayout" )
Call uidoc.Close
End Sub